I
Type of instance to register (may be an implemented interface instead of the full type).
Leadtools.Dicom.AddIn Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Generic Register(I) Method
See Also 
Leadtools.Dicom.AddIn Namespace > ServiceLocator Class > Register Method : Generic Register(I) Method



instance
Object to be returned.
instance
Object to be returned.
Registers an instance with the container.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Sub Register(Of I)( _
   ByVal instance As I _
) 
Visual Basic (Usage)Copy Code
Dim instance As I
 
ServiceLocator.Register(Of I)(instance)
C# 
public static void Register<I>( 
   I instance
)
C++/CLI 
public:
static void Registergeneric<typename I>
( 
   I instance
) 

Parameters

instance
Object to be returned.

Type Parameters

I
Type of instance to register (may be an implemented interface instead of the full type).

Example

Registers an IServiceLog implementation with the global unity container.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features